<?php
/**
 * 邮箱管理验证器
 */

namespace app\common\validate;

class EmailServerValidate extends Validate
{
    protected $rule = [
            'host|smtp服务器' => 'require',
    'username|邮箱用户名' => 'require',
    'address|发件邮箱' => 'require',
    'name|发件人名称' => 'require',
    'port|端口号' => 'require',

    ];

    protected $message = [
            'host.require' => 'smtp服务器不能为空',
    'username.require' => '邮箱用户名不能为空',
    'address.require' => '发件邮箱不能为空',
    'name.require' => '发件人名称不能为空',
    'port.require' => '端口号不能为空',

    ];

    protected $scene = [
        'add'  => ['host','username','address','name','port',],
'edit' => ['host','username','address','name','port',],

    ];

    

}
